<template>
  <!-- 友情链接 -->
  <div id="info">
    <div class="info-box">
      <div class="info-title-box">
        <p class="info-title">青云的名片</p>
      </div>
      <div class="info-person">
        <p>职业: 程序员,JAVA</p>
        <p>现居：湖北-武汉</p>
        <p>Email: 603085899@qq.com</p>
      </div>
      <div class="info-link">
        <ul class="info-ul">
          <li class="info-li icon-home">
            <el-link :underline="false" href="/" target="_blank" title="主页"></el-link>
          </li>

          <el-tooltip placement="top">
            <div slot="content">
              <p>603085899@qq.com</p>
            </div>
            <li class="info-li icon-email">
              <el-link :underline="false" href="http://wpa.qq.com/msgrd?v=3&uin=55826758&site=qq&menu=yes"
                target="_blank" title="QQ"></el-link>
            </li>
          </el-tooltip>

          <el-tooltip placement="top">
            <div slot="content">
              <p>603085899</p>
            </div>
            <li class="info-li icon-qq">
              <el-link :underline="false" href="http://wpa.qq.com/msgrd?v=3&uin=55826758&site=qq&menu=yes"
                target="_blank" title="QQ"></el-link>
            </li>
          </el-tooltip>

          <el-tooltip placement="top">
            <div slot="content">
              <img class="pre-weixin-img" src="../assets/images/we_chat.png">
            </div>
            <li class="info-li icon-weixin">
              <el-link :underline="false" href="" target="_blank" title="微信"></el-link>
            </li>
          </el-tooltip>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    name: 'info',
    data () {
        return {
            keyword: null
        }
    },
    filters: {
        ellipsis (value, count) {
            if (!value) return ''
            if (value.length > count) {
                return value.slice(0, count) + '...'
            }
            return value
        }
    },
    methods: {},
    mounted () { }
}
</script>

<style scoped>
#info {
  width: auto;
  height: 100%;
  margin: 0px 0px 0px 0px;
  padding: 0px;
  background-color: #fff;
}

.info-box {
  width: auto;
  height: 200px;
  display: flex;
  flex-direction: column;
  margin: 10px 0px 5px 0px;
}

.info-title-box {
  width: auto;
  height: 30px;
  line-height: 30px;
  text-align: left;
  margin: 10px 0px 0px 0px;
}

.info-title {
  font-size: 18px;
  color: #000;
  margin: 0px 20px 0px 20px;

}

.info-person {
  width: auto;
  height: 70px;
  line-height: 10px;
  margin: 10px 20px 0px 20px;
  padding: 0px;
}

.info-person p {
  font-size: 16px;
  font-weight: 300;
  color: rgb(0, 0, 0);
  margin-bottom: 10px;
  text-align: left;
}

.info-link {
  width: auto;
  height: 80px;
}

.info-ul {
  list-style: none;
  margin: 0px 20px 0px 20px;
}

.info-li {
  float: left;
  width: calc((100% - 50px) / 4);
  height: 70px;
  background-color: rgb(202, 242, 234);
  margin-right: 10px;
  line-height: 70px;
}

.icon-home {
  font-size: 28px;
  background: url('../assets/images/c01.png') no-repeat center;
}

.icon-email {
  font-size: 28px;
  background: url('../assets/images/c02.png') no-repeat center;
}

.icon-qq {
  font-size: 28px;
  background: url('../assets/images/c03.png') no-repeat center;
}

.icon-weixin {
  font-size: 28px;
  background: url('../assets/images/c04.png') no-repeat center;
}

.pre-weixin-img {
  width: 100px;
  height: 100px;
}

a {
  height: 53px;
  width: 53px;
  display: block;
  overflow: hidden;
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8), inset 0px 1px 1px rgb(0 0 0 / 100%);
  border-radius: 50%;
  margin: 10px 0px;
}
</style>
